#include "Client.hpp"
#include <memory>
static void Usage(string proc)
{
    cout << "\nUsage:\n\t" << proc << " local_port\n\n";
}
int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        Usage(argv[0]);
        exit(3);
    }
    string ip = argv[1];
    uint16_t port = atoi(argv[2]);

    unique_ptr<Client> ucli(new Client(ip, port));
    ucli->init();
    ucli->run();
    return 0;
}